package createPattern.factoryPattern.abstractFactory.maintenanceProduct;

import createPattern.factoryPattern.abstractFactory.carProduct.Car;

public class Maintenance {

	private String type = "";

	private int cost = 0;

	public void service(Car car) {
		System.out.println(
				type + " of " + car.getName() + " maintenance service cost " + cost + " dollars!");
	}

	public Maintenance(String type, int cost) {
		super();
		this.type = type;
		this.cost = cost;
	}

}
